# # 定义元组()，表示空元组
# tuple = ()
# print(tuple)
# print(type(tuple))
# # (单个元素) ——> 表示int类型
# tuple = (0)
# print(tuple)
# print(type(tuple))
# # 单元素元组必须是 ——> (单个元素,)
# tuple = (0,)
# print(tuple)
# print(type(tuple))

# 元组的访问
tuple = (0,1,2,3,4,5,6)
# for i in tuple:
#     print(i)
# print(tuple[0])
# print(tuple[1])

# 元组的相关方法
# index(): 查找不到就会报错
# print(tuple.index(0))
# count(): 计算元组中某个元素的个数
# print(tuple.count(0))

# len(): 公共方法，计算元组元素的个数
print(len(tuple))


# list = []
# print(list)
# print(type(list))
# set = {}
# print(set)
# print(type(set))
# dist = {}
# print(dist)
# print(type(dist))